package com.lsl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lsl.common.utils.PageUtils;
import com.lsl.gulimall.product.entity.AttrEntity;
import com.lsl.gulimall.product.vo.request.AttrInVo;
import com.lsl.gulimall.product.vo.response.AttrGroupWithAttrsOutVo;
import com.lsl.gulimall.product.vo.response.AttrOutVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author liushengli
 * @email sunlightcs@gmail.com
 * @date 2021-03-31 21:27:13
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils getBaseAttrList(Map<String, Object> params,String attrType,Long catelogId);

    void saveAttr(AttrInVo attr);

    void deleteByIds(List<Long> attrIds);

    AttrOutVo getAttrInfoById(Long attrId);

    void updateAttr(AttrInVo attr);

    PageUtils getNoattrRelation(Map<String, Object> params, Long groupId);

    List<AttrOutVo>  getattrRelation(Long groupId);

    List<AttrGroupWithAttrsOutVo> getWithAttrByCateLogId(Long catelogId);
}

